<!DOCTYPE html>
<html>
<head>
  <title>Lab2Task1V1</title>
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>
<% if user_signed_in? %>
 Signed in as <%= current_user.email %> Not you ?
 <%= link_to "Sign out", destroy_user_session_path, :method => :delete %>
 <!--%= link_to "Change Password", changepassword_path %-->
 <%= link_to 'Change Password',  edit_user_path(:id => current_user.id) %>
<% else %>
 <%= link_to "Sign up", new_user_registration_path %> or <%= link_to "sign in", new_user_session_path %>
<% end %>
</div>
<% flash.each do |key, value| %>
<p><%= value %></p>
<% end %>
<%= yield %>

</body>
</html>
